﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace Mindfor.Web.Modules.Vacancies
{
	public class VacancyMap : ClassMap<Vacancy>
	{
		public VacancyMap()
		{
			Table("Vacancies");
			Id(m => m.Id);
			Map(m => m.Position).Length(255).Not.Nullable(); 
			Map(m => m.Description).Not.Nullable();
			Map(m => m.Salary).Length(255).Not.Nullable();
			Map(m => m.Recruiter).Length(255).Not.Nullable();
			Map(m => m.RecruiterPhone).Length(20).Not.Nullable();
			Map(m => m.RecruiterEmail).Length(100).Nullable();
		}
	}
}